import request from "../utils/request.js";

export default {
    list(pageNum = 1, pageSize = 10, word = '') {
        return request({
            url: '/sensitive-word/sensitive/list',
            method: 'get',
            params: { pageNum, pageSize, word }
        })
    },
    add(data) {
        return request({
            url: '/sensitive-word/sensitive/add',
            method: 'post',
            data
        })
    },
    remove(data) {
        return request({
            url: '/sensitive-word/sensitive/remove',
            method: 'post',
            data
        })
    },
    update(data) {
        return request({
            url: '/sensitive-word/sensitive/update',
            method: 'put',
            data
        })
    }
}